package ribbonconfiguration;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import top.banner.contentcenter.configuration.NacosSameClusterWeightedRule;

/**
 * @author XGL
 */
@Configuration
public class RibbonConfiguration {
    @Bean
    public IRule ribbonRule() {
        return new NacosSameClusterWeightedRule();
    }

//    @Bean
//    public IPing ping(){
//        return new PingUrl();
//    }
}
